#ifndef BARWIDGET_H
#define BARWIDGET_H

#include <QWidget>
#include <QtGui>
#include <QPushButton>
#include <QHBoxLayout>
#include "actualdatamodel.h"
#include "gridwidget.h"
#include "settingsdialog.h"

class BarWidget: public QWidget
{
    Q_OBJECT
public:
    BarWidget();

protected:
    void closeEvent(QCloseEvent *event);

private slots:
    void goIESlot();
    void goChromeSlot();
    void goMozillaSlot();
    void goSafariSlot();
    void search();
    void settings();

private:
    // Actions that create
    void createWidgets();


    //Widgets
    QPushButton* buttonIE;
    QPushButton* buttonChrome;
    QPushButton* buttonMozilla;
    QPushButton* buttonSafari;
    QPushButton* buttonSettings;

    //Layout
    QHBoxLayout* hLayout;

    // SEARCH BOX.
    QLineEdit *searchText;
    QCompleter *completer;
};

#endif // BARWIDGET_H
